<?php

namespace libs\database\mysqli;

class Connect {
    
    private $config;
    
    public function __construct($config) 
    {
        $this->config = $config;
    }
    
    public function connect()
    {
        $config = $this->config;
        
        $db = new \MySQLi($config->host, $config->user, $config->password, $config->dbname,$config->port);
        
        return $db;
    }
}

?>
